package timing.ukulele.third.convertor.weixin;

import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;
import timing.ukulele.common.data.DtoBaseDataConverter;
import timing.ukulele.data.third.data.weixin.WxAppDTO;
import timing.ukulele.data.third.view.weixin.WxAppVO;
import timing.ukulele.third.persistent.weixin.WxApp;


@Mapper
public interface WxAppConverter extends DtoBaseDataConverter<WxApp, WxAppDTO, WxAppVO> {
    WxAppConverter INSTANCE = Mappers.getMapper(WxAppConverter.class);

    @Override
    @Mappings({
            @Mapping(target = "createBy", ignore = true),
            @Mapping(target = "createTime", ignore = true),
            @Mapping(target = "updateBy", ignore = true),
            @Mapping(target = "updateTime", ignore = true),
    })
    WxApp v2p(WxAppVO vo);

    @Override
    WxAppVO p2v(WxApp po);

}
